package com.weishu.house.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weishu.common.core.web.controller.BaseController;
import com.weishu.common.core.web.page.TableDataInfo;
import com.weishu.house.entity.RoomInfo;
import com.weishu.house.service.IRoomInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@RestController
@RequestMapping("room-info")
public class RoomInfoController extends BaseController {


    @Autowired
    private IRoomInfoService iRoomInfoService;
    @RequestMapping("list")
    public TableDataInfo list(RoomInfo roomInfo){
        startPage();

        List<RoomInfo> list = iRoomInfoService.roomInfo(roomInfo);
        return getDataTable(list);
    }

}
